# !/usr/bin/env python
# -*- coding: utf-8 -*-
# @File  : 查看鸢尾花数据集详情.py
# @Author: dongguangwen
# @Date  : 2025-01-19 15:18
from sklearn.datasets import load_iris

# 加载数据集
data = load_iris()
# print(data)

# 查看数据集信息
print('\n查看数据集信息-->\n', data.data[:5])

# 查看目标值
print('mydataset.target-->\n', data.target)

# 查看目标值名字
print('mydataset.target names-->n', data.target_names)

# 查看特征名
print('mydataset.feature names-->n', data.feature_names)

# 数据文件路径
print('mydataset.filename-->n', data.filename)

# 查看数据集描述
# print('\nmydataset.DEsCR-->n', data.DESCR)

"""
查看数据集信息-->
 [[5.1 3.5 1.4 0.2]
 [4.9 3.  1.4 0.2]
 [4.7 3.2 1.3 0.2]
 [4.6 3.1 1.5 0.2]
 [5.  3.6 1.4 0.2]]
mydataset.target-->
 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2
 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
 2 2]
mydataset.target names-->n ['setosa' 'versicolor' 'virginica']
mydataset.feature names-->n ['sepal length (cm)', 'sepal width (cm)', 'petal length (cm)', 'petal width (cm)']
mydataset.filename-->n iris.csv
"""
